package com.wan37.logic.handler.message;

import com.wan37.logic.component.Worker;
import com.wan37.logic.domain.vo.MessageVO;
import com.wan37.logic.handler.LogicServerHandler;
import com.wan37.logic.handler.MsgHandler;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author : luoyong
 * @date : 2020-05-28 09:47
 **/
public class GreetHandler extends MsgHandler {
    private static final Logger logger = LoggerFactory.getLogger(GreetHandler.class);


    public GreetHandler(MessageVO messageVO) {
        super(messageVO);
    }


    @Override
    public void execute(Worker worker) throws Exception {
        LogicServerHandler.setGateConnCtx(messageVO.getCtx());
        logger.info("[GateServer-LogicServer] connection is established.");

    }
}
